﻿
@if (Model.QuestionList == null || Model.QuestionList.Count == 0)
{
    <h2>@T("Comming soon...")</h2>
    <p>
        @T("The questions for this article is being updated. Please come back later.")
    </p>
} else {
    <ul class="wiki-questions">
    @foreach (var question in Model.QuestionList)
    {
        <li class="question">
            <div class="question-index">@(question.DisplayIndex + 1). </div>
            <div class="question-text">@(new MvcHtmlString(question.Text))</div>
            <ul class="options">
                @foreach (var option in question.Options) {
                <li class="option">
                    <span class="check"><input type="checkbox" /></span>
                    <span class="option-text" correct="@(option.IsCorrect ? 1 : 0)">@HttpUtility.HtmlDecode(option.Text)</span>
                    <div style="clear: both;"></div>
                </li>
                }
            </ul>
            <div style="clear: both;"></div>
            <div class="question-reason @(String.IsNullOrWhiteSpace(question.Reason) ? "empty" : "")">@(new MvcHtmlString(question.Reason))&nbsp;</div>
        </li>
    }
    </ul>
    <div>
        <input type="button" id="buttonResult" value="Result" />
    </div>
}